package net.dotool.page;

/**
 * @author 李岩飞
 * @email eliyanfei@126.com 2017年12月11日 下午4:27:24
 * 
 */
public class Result {
	public boolean status;
	public Object data;
	public long count1 = 0;// 计数值
	public double count2 = 0;// 计数值

	public Result(boolean status, Object data) {
		super();
		this.status = status;
		this.data = data;
	}

	public Result setCount1(long count1) {
		this.count1 = count1;
		return this;
	}

	public Result setCount2(double count2) {
		this.count2 = count2;
		return this;
	}
	
	public double getCount2() {
		return count2;
	}

	public long getCount1() {
		return count1;
	}

	public static Result success(Object data) {
		return new Result(true, data);
	}

	public static Result error(boolean status, Object data) {
		return new Result(false, data);
	}
}
